package com.bst.bsj.common.dal.daointerface;

import java.util.List;
import java.util.Map;

import com.bst.bsj.common.dal.dataobject.Seedling;
import com.sylinxsoft.tools.dao.CommonBaseDAO;

public interface SeedlingDAO extends CommonBaseDAO {
  /*
   *总条数，条件查询
   */
  public Long getCounts(Map paramMap);

  /*
   * 分页查询
   */
  public List<Seedling> selectAll(Map paramMap, Long offset, Long length);

  /*
   * 根据ID查询对象
   */
  public Seedling getSeedling(Long id);

  /*
   *更新审核状态
   */
  public int update(Seedling seedling);
   
  /*
   * 分页查询热门数据
   */
  public List<Seedling> selectAllHots(Map<String, Object> paramsMap);

  
  /*
   * 更改热门排序
   */
  public int updateSort(Map<String, Object> params);
  /*
   * 获取最大排序值
   */
  public Long getMaxSeq();

  /*
   * 品种发布数据
   */
  public List<Map<String, Object>> getCategory(Map<String, Object> paramsMap);

  /*
   * 种类发布数据
   */
  public List<Map<String, Object>> getSeedlingType(Map<String, Object> paramsMap);

  /*
   * 通过id排序分页条件查询
   */
  public List<Seedling> queryOrderById(Map<String, Object> paramMap);

  /*
   * 自动过期批量更新
   */
  public int soldTimeUpdate(List<Long> idList);

  /*
   * 获取可售总条数
   */
  public Long getOnSaleCount(Map<String, Object> paramMap);

  /*
   * 查询当前排序以后的苗木
   */
  public List<Seedling> getAfterHots(Map<String, Object> params);

  public void deleteByParams(Map<String, Object> paramsMap);

  
}
